package com.example.demo;

import com.example.model.User;
import com.example.properties.AppConfig;
import com.example.properties.AppConfigDefault;
import com.example.properties.AppConfigXml;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundValueOperations;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.concurrent.TimeUnit;

@RestController
public class Controller {

    private Logger logger = LoggerFactory.getLogger(Controller.class);

    @Autowired
    private StringRedisTemplate redisTemplate;


    @Autowired
    private AppConfig appConfig;

    @Autowired
    private AppConfigDefault appConfigDefault;

    @Autowired
    private AppConfigXml appConfigXml;

    @RequestMapping(value = "/home", produces = {"application/json"})
    public Object sayHello() {
        return appConfigXml;

    }
}
